object q5 extends App {
for (i<- args reverse) print(i+" ")
}